#!/usr/bin/env bash

set -e

DIR=$(dirname $(realpath "$0"))/..

node -e "console.log('export default '+JSON.stringify(require('os').platform()))" > $DIR/src/config/platform.mjs
node -e "console.log('export default '+JSON.stringify(require('os').arch()))" > $DIR/src/config/arch.mjs
